<? if(!defined('IN_ROOT')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Manyou's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=MY_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
</head>

<body>

<div id="append">
</div>
<div class="container">
<div class="hastabmenu">
<ul class="tabmenu">
<li class="tabcurrent"><a href="index.php?admin_usergroup/default<?=$setting['seo_suffix']?>">会员用户组</a> </li>
<li><a  href="index.php?admin_usergroup/system<?=$setting['seo_suffix']?>">系统用户组</a></li>
</ul>
<div class="tabcontentcur">
<form action="index.php?admin_usergroup/add<?=$setting['seo_suffix']?>" method="post">
<table width="50%">
<tr>
<td>添加会员组:</td>
<td><input class="txt" name="grouptitle" ></td>
<td><input class="btn" type="submit" value="提 交"></td>
</tr>
</table>
</form>
</div>
</div><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><div class="mainbox">

<form action="index.php?admin_usergroup/edit<?=$setting['seo_suffix']?>" method="post">
<table class="datalist fixwidth" >
<tr>
<th>用户组ID</th>
<th>用户组</th>
<th>经验值下限</th>
<th>组权限</th>
<th>删除</th>
</tr>
<? if(is_array($usergrouplist)) { foreach($usergrouplist as $usergroup) { ?>
<tr>
<td width="150"><strong><?=$usergroup['groupid']?></strong></td>
<td width="100"><input name="groupid[]" type="hidden" value="<?=$usergroup['groupid']?>"><input name="grouptitle[]" value="<?=$usergroup['grouptitle']?>" ></td>
<td width="200"><input name="scorelower[]" value="<?=$usergroup['creditslower']?>" ></td>
<td width="100"><a href="index.php?admin_usergroup/regular/<?=$usergroup['groupid']?><?=$setting['seo_suffix']?>">设置</a></td>
<td><? if($usergroup['groupid']>9 ) { ?><a href="javascript:if(window.confirm('确认删除?'))window.location='index.php?admin_usergroup/remove/<?=$usergroup['groupid']?><?=$setting['seo_suffix']?>'">删除</a><? } else { ?>不能删除<? } ?></td>
</tr>
<? } } ?>
<tr colspan="5" class="nobg">
    			<td><input type="submit" value="提交" class="btn"></td>
  		 	</tr>
</table>
</form>
</div>
</div>

</body>

</html>
